package com.six.vo;

import java.sql.Date;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 库房
 * 
 */
@Entity
@Table(name="WMS_T_STORE")
public class Store {
	private int storeID;// VARCHAR(16) 库房编号
	private String storeName;// NVARCHAR2(60) 库房名称
	private String storeNote;// NVARCHAR2(200) 描述
	private Date storeEditTime;// DATE 最后编辑时间
	private int storeIsDel;// SMALLINT 是否已被删除
	private Set<Site> site;
	private Set<Wkstn> wkstn;
	
	
	public Store() {
		super();
	}
	public Store(int storeID, String storeName, String storeNote,
			Date storeEditTime, int storeIsDel, Set<Site> site, Set<Wkstn> wkstn) {
		super();
		this.storeID = storeID;
		this.storeName = storeName;
		this.storeNote = storeNote;
		this.storeEditTime = storeEditTime;
		this.storeIsDel = storeIsDel;
		this.site = site;
		this.wkstn = wkstn;
	}
	@Id
	@GeneratedValue
	public int getStoreID() {
		return storeID;
	}
	public void setStoreID(int storeID) {
		this.storeID = storeID;
	}
	public String getStoreName() {
		return storeName;
	}
	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}
	public String getStoreNote() {
		return storeNote;
	}
	public void setStoreNote(String storeNote) {
		this.storeNote = storeNote;
	}
	public Date getStoreEditTime() {
		return storeEditTime;
	}
	public void setStoreEditTime(Date storeEditTime) {
		this.storeEditTime = storeEditTime;
	}
	public int getStoreIsDel() {
		return storeIsDel;
	}
	public void setStoreIsDel(int storeIsDel) {
		this.storeIsDel = storeIsDel;
	}
	@OneToMany(cascade=CascadeType.ALL)
	public Set<Site> getSite() {
		return site;
	}
	public void setSite(Set<Site> site) {
		this.site = site;
	}
	@OneToMany(cascade=CascadeType.ALL)
	public Set<Wkstn> getWkstn() {
		return wkstn;
	}
	public void setWkstn(Set<Wkstn> wkstn) {
		this.wkstn = wkstn;
	}
	
	

}
